package com.sf.fy.uav.applet.third.party.controller;

import com.sf.fy.uav.applet.third.party.service.ThirdPartyService;
import com.sf.fy.uav.common.response.operational.SelectTerminalListResponse;
import com.sf.fy.uav.common.utils.Rs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author LTQ
 */
@RestController
@RequestMapping("/sys/third/party/")
public class ThirdPartyController {

    @Autowired
    private ThirdPartyService thirdPartyService;

    @GetMapping("select-terminal-list")
    public Rs<List<SelectTerminalListResponse>> selectTerminalList() {
        return Rs.success(thirdPartyService.selectTerminalList());
    }
}
